import {useEffect} from "react"
const FetchTest = () => {

    useEffect(()=>{
        const fetchApi = async()=>{
            try {
                const response = await fetch('/manifest.json')
                const data = await response.json()
                return data
            }catch(error){
                console.log("获取api失败")
            }
        } 
        const data = fetchApi()
        // console.log("data", data)
    })
    return<>FetchTest</>
}

export default FetchTest;